
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, and Azure
-- --------------------------------------------------
-- Date Created: 10/21/2011 13:32:49
-- Generated from EDMX file: C:\Users\mostafa\documents\visual studio 2010\Projects\Paltop_v0.1\Paltop_DatabaseLayer\PaltopEntityModel.edmx
-- --------------------------------------------------

SET QUOTED_IDENTIFIER OFF;
GO
USE [PaltopDatabase];
GO
IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]');
GO

-- --------------------------------------------------
-- Dropping existing FOREIGN KEY constraints
-- --------------------------------------------------


-- --------------------------------------------------
-- Dropping existing tables
-- --------------------------------------------------


-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------

-- Creating table 'StickyNotes'
CREATE TABLE [dbo].[StickyNotes] (
    [StickyNoteID] int IDENTITY(1,1) NOT NULL,
    [SavedDate] datetime  NOT NULL,
    [Content] nvarchar(max)  NOT NULL,
    [UserID] bigint  NOT NULL,
    [XPosition] int  NOT NULL,
    [YPosition] int  NOT NULL
);
GO

-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------

-- Creating primary key on [StickyNoteID] in table 'StickyNotes'
ALTER TABLE [dbo].[StickyNotes]
ADD CONSTRAINT [PK_StickyNotes]
    PRIMARY KEY CLUSTERED ([StickyNoteID] ASC);
GO

-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------

-- --------------------------------------------------
-- Script has ended
-- --------------------------------------------------